﻿
namespace QuantoSharp.Electron
{
    public abstract class Event
    {
        public abstract Date Date { get; }

        public virtual bool HasOccured(Date date)
        {
            return Date <= date;
        }

        public virtual bool HasOccured(Date date, bool includeToday)
        {
            if (includeToday)
                return Date < date;

            return Date <= date;
        }
    }
}
